package com.hengpeng.itfinbase.persist;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;

import com.hengpeng.common.web.annotation.HtmlInput;
import com.hengpeng.common.web.annotation.HtmlInputType;
import com.hengpeng.itfinbase.en.RewardRebateStatus;
import com.hengpeng.itfinbase.idAssign.AbstractAssign18IdEntity;

/**
 * 返利信息表
 * 
 * @author weiyuan
 */
@Entity
public class RewardRebate extends AbstractAssign18IdEntity {

    /**
     * 
     */
    private static final long serialVersionUID = -6976803970140937713L;

    /**
     * 活动id
     */
    private Long activeId;

    /**
     * 对应奖品id
     */
    private Long rewardId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 用户名称
     */
    private String userName;

    /**
     * 返利金额：单位：分
     */
    private BigDecimal money;

    /**
     * 获得时间
     */
    private Date gettime;
    /**
     * 支付时间
     */
    private Date paytime;

    @Column(length = 20)
    @HtmlInput(label = "返利状态", type = HtmlInputType.TEXT, nullable = true, index = 3, labelProperty = "text")
    @Enumerated(javax.persistence.EnumType.STRING)
    private RewardRebateStatus status;

    private Date createTime;

    private Date updateTime;

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Long getRewardId() {
        return rewardId;
    }

    public void setRewardId(Long rewardId) {
        this.rewardId = rewardId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getGettime() {
        return gettime;
    }

    public void setGettime(Date gettime) {
        this.gettime = gettime;
    }

    public Date getPaytime() {
        return paytime;
    }

    public void setPaytime(Date paytime) {
        this.paytime = paytime;
    }

    public RewardRebateStatus getStatus() {
        return status;
    }

    public void setStatus(RewardRebateStatus status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getActiveId() {
        return activeId;
    }

    public void setActiveId(Long activeId) {
        this.activeId = activeId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

}
